package com.yunxun.controller;

import com.yunxun.entity.ArticleEntity;
import com.yunxun.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ArticleController {
    @Autowired
    private ArticleService articleService;
    @RequestMapping("/getArticleJson")
    @ResponseBody
    public ArticleEntity getArticleJson(ArticleEntity articleEntity){
        return articleService.selectByMid(articleEntity);
    }
}
